﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Context.Roleplay
{
    public class GameRolePlayNamedActorInformations : GameRolePlayActorInformations
    {
        public string Name { get; set; }

        public GameRolePlayNamedActorInformations(string name, int contextID, Look.EntityLook look, EntityDispositionInformations disposition)
            : base(contextID, look, disposition)
        {
            this.Name = name;
        }

        public void Serialize(NetworkMessage message)
        {
            base.Serialize(message);
            message.WriterBuffer.writeUTF(this.Name);
        }
    }
}
